<?php switch($content_type){
case 'o_fp': ?>
<dl>
    <dd class="cp-header"><?php echo $text_welcome; ?></dd>
    <dd class="cp-content">
        <ul>
            <li><?php echo $text_join; ?><?php echo $userInfo['user_regdate']; ?></li>
            <li><?php echo $text_last_visit; ?><?php echo $userInfo['user_lastvisit']; ?></li>
            <li><?php echo $text_total_topics; ?><?php echo $userInfo['user_topics']; ?></span></li>
            <li><?php echo $text_total_posts; ?><?php echo $userInfo['user_posts']; ?></li>
            <li><?php echo $text_last_posting_time; ?><?php echo $userInfo['user_lastpost_time']; ?></li>
            <li><?php echo $text_warning_count; ?><?php echo $userInfo['user_warnings']; ?></li>
            <li><?php echo $text_role; ?><?php echo $userInfo['role_title']; ?></li>
            <?php if($userInfo['user_role']==5){ ?>
            <li><?php echo $text_rank; ?><?php echo $userInfo['rank_title']; ?></li>
            <?php } ?>
        </ul>
    </dd>
</dl>
<?php break; ?>
<?php case 'o_ms': ?>
<form id="subscription-list-form" name="subscription-list-form" action="<?php echo $action_link; ?>" method="POST">
<dl>
    <dd class="cp-header"><?php echo $text_subscription_intro; ?></dd>
    <dd class="cp-content">
    <?php if(empty($topic_subscriptions)){ ?>
        <dl>
            <dd><strong><?php echo $text_no_subscriptions; ?></strong></dd>
        </dl>
    <?php }else{ ?>
        <?php if($forum_subscriptions){ ?>
        <dl class="cp-list-heading">
            <dd class="cp-list-heading-first"><?php echo $text_forum_subscription; ?></dd>
            <dd class="cp-list-heading-second"><?php echo $text_last_post; ?></dd>
            <dd class="cp-list-heading-third"><?php echo $text_mark; ?></dd>
        </dl>
        <?php $fs=0; ?>
        <?php foreach($forum_subscriptions as $forum_subscription ){ ?>
        <dl class="cp-list">
            <dd class="cp-list-first <?php echo $forumStatus[$fs]; ?>" title="<?php echo $text_forum_status[$fs]; ?>">
                <span><a href="<?php echo $forum_subscription['forum_link']; ?>"><?php echo $forum_subscription['forum_name']; ?></a></span><br />
                <span><?php echo $forum_subscription['forum_desc']; ?></span>
            </dd>
            <dd class="cp-list-second">
                <span><?php echo$text_by . '&nbsp;'; ?><a href="#"><?php echo $forum_subscription['forum_last_poster_name']; ?></a></span><br />
                <?php echo $forum_subscription['forum_last_post_time']; ?>
            </dd>
            <dd class="cp-list-third">
                <input type="checkbox" name="marked_f_id[]" value="<?php echo $forum_subscription['forum_id'] ; ?>" />
            </dd>
        </dl>
        <?php $fs++; ?>
       <?php } ?>
       <?php } ?>
        <dl class="cp-list-heading">
            <dd class="cp-list-heading-first"><?php echo $text_topic_subscription; ?></dd>
            <dd class="cp-list-heading-second"><?php echo $text_last_post; ?></dd>
            <dd class="cp-list-heading-third"><?php echo $text_mark; ?></dd>
        </dl>
        <?php $ts=0; ?>
        <?php foreach($topic_subscriptions as $topic_subscription ){ ?>
        <dl class="cp-list">
            <dd class="cp-list-first <?php echo $topicStatus[$ts]; ?>" title="<?php echo $text_topic_status[$ts]; ?>">
                <span><a href="<?php echo $topic_subscription['topic_link']; ?>"><?php echo $topic_subscription['topic_title']; ?></a></span><br />
                <span><?php echo$text_by . '&nbsp;'; ?><a href="#"><?php echo $topic_subscription['topic_first_poster_name']; ?></a><?php echo $text_separator; echo $topic_subscription['topic_time']; ?></span>
            </dd>
            <dd class="cp-list-second">
                <span><?php echo$text_by . '&nbsp;'; ?><a href="#"><?php echo $topic_subscription['topic_last_poster_name']; ?></a></span><br />
                <?php echo $topic_subscription['topic_last_post_time']; ?>
            </dd>
            <dd class="cp-list-third">
                <input type="checkbox" name="marked_t_id[]" value="<?php echo $topic_subscription['topic_id'] ; ?>" />
            </dd>
        </dl>
        <?php $ts++; ?>
        <?php } ?>
        <?php if($subscriptions_total>0){ ?>
        <dl class="cp-list-bottom">
            <dd><?php if($subscriptions_total>1){ ?>
                &bull; <a href="#" onclick="marklist('subscription-list-form', 'marked_f', true); marklist('subscription-list-form', 'marked_t', true); return false;"><?php echo $text_mark_all; ?></a>
                &bull; <a href="#" onclick="marklist('subscription-list-form', 'marked_f', false); marklist('subscription-list-form', 'marked_t', false); return false;"><?php echo $text_unmark_all; ?></a>
                <?php } ?>
                <input class="input-buttons" type="submit" name="delete_subscriptions" value="<?php echo $text_delete; ?>" onclick="{if(confirm('<?php echo $text_confirm_delete; ?>')){this.document.subscription-list-form.submit();return true;}return false;}" />
            </dd>
        </dl>
        <div class="forum-pagination"><?php echo $pagination; ?></div>
        <?php } ?>
        <?php } ?>
    </dd>
</dl>
</form>
<script type="text/javascript"><!--
$(document).ready(
function(){
    $(".subscription-list").filter(":even").mouseover(function() {
        $(this).css("background-color", "#FFFFDB");
    }).mouseout(function(){
            $(this).css("background-color", "");
        });

    $(".subscription-list").filter(":odd").mouseover(function() {
        $(this).css("background-color", "#FFFFDB");
    }).mouseout(function(){
            $(this).css("background-color", "");
        });
});
//--></script>
<?php break; ?>
<?php case 'o_mb': ?>
<form id="bookmark-list-form" name="bookmark-list-form" action="<?php echo $action_link; ?>" method="POST">
<dl>
    <dd class="cp-header"><?php echo $text_bookmark_intro; ?></dd>
    <dd class="cp-content">
    <?php if(empty($bookmarks)){ ?>
        <dl>
            <dd><strong><?php echo $text_no_bookmarks; ?></strong></dd>
        </dl>
    <?php }else{ ?>
        <dl class="cp-list-heading">
            <dd class="cp-list-heading-first"><?php echo $text_bookmarks; ?></dd>
            <dd class="cp-list-heading-second"><?php echo $text_last_post; ?></dd>
            <dd class="cp-list-heading-third"><?php echo $text_mark; ?></dd>
        </dl>
        <?php $b=0; ?>
        <?php foreach($bookmarks as $bookmark ){ ?>
        <dl class="cp-list">
            <dd class="cp-list-first <?php echo $topicStatus[$b]; ?>" title="<?php echo $text_topic_status[$b]; ?>">
                <span><a href="<?php echo $bookmark['topic_link']; ?>"><?php echo $bookmark['topic_title']; ?></a></span><br />
                <span><?php echo$text_by . '&nbsp;'; ?><a href="#"><?php echo $bookmark['topic_first_poster_name']; ?></a><?php echo $text_separator; echo $bookmark['topic_time']; ?></span>
            </dd>
            <dd class="cp-list-second">
                <span><?php echo$text_by . '&nbsp;'; ?><a href="#"><?php echo $bookmark['topic_last_poster_name']; ?></a></span><br />
                <?php echo $bookmark['topic_last_post_time']; ?>
            </dd>
            <dd class="cp-list-third">
                <input type="checkbox" name="marked_bookmark_id[]" value="<?php echo $bookmark['topic_id'] ; ?>" />
            </dd>
        </dl>
        <?php $b++; ?>
        <?php } ?>
        <?php if($bookmarks_total>0){ ?>
        <dl class="cp-list-bottom">
            <dd><?php if($bookmarks_total>1){ ?>
                &bull; <a href="#" onclick="marklist('bookmark-list-form', 'marked_bookmark', true); return false;"><?php echo $text_mark_all; ?></a>
                &bull; <a href="#" onclick="marklist('bookmark-list-form', 'marked_bookmark', false); return false;"><?php echo $text_unmark_all; ?></a>
                <?php } ?>
                <input class="input-buttons" type="submit" name="delete_bookmarks" value="<?php echo $text_delete; ?>" onclick="{if(confirm('<?php echo $text_confirm_delete; ?>')){this.document.bookmark-list-form.submit();return true;}return false;}" />
            </dd>
        </dl>
        <div class="forum-pagination"><?php echo $pagination; ?></div>
        <?php } ?>
        <?php } ?>
    </dd>
</dl>
</form>
<script type="text/javascript"><!--
$(document).ready(
function(){
    $(".bookmark-list").filter(":even").mouseover(function() {
        $(this).css("background-color", "#FFFFDB");
    }).mouseout(function(){
            $(this).css("background-color", "");
        });

    $(".bookmark-list").filter(":odd").mouseover(function() {
        $(this).css("background-color", "#FFFFDB");
    }).mouseout(function(){
            $(this).css("background-color", "");
        });
});
//--></script>
<?php break; ?>
<?php case 'o_md': ?>
<form id="draft-list-form" name="draft-list-form" action="<?php echo $action_link; ?>" method="POST">
<dl>
  <dd class="cp-header"><?php echo $text_draft_intro; ?></dd>
  <dd class="cp-content">
      <?php if(empty($drafts)){ ?>
      <dl>
          <dd><strong><?php echo $text_no_drafts; ?></strong></dd>
      </dl>
      <?php }else{ ?>
      <dl class="cp-list-heading">
          <dd class="cp-list-heading-first cp-draft-heading-first"><?php echo $text_draft_title; ?></dd>
          <dd class="cp-list-heading-second"><?php echo $text_draft_save_at; ?></dd>
          <dd class="cp-list-heading-third"><?php echo $text_draft_mark; ?></dd>
      </dl>
      <?php foreach($drafts as $draft ){ ?>
      <dl class="cp-list">
          <dd class="cp-list-first cp-draft-first">
              <?php echo $draft['draft_subject']; ?><br />
              <span><?php echo $draft['text_draft_location']; ?>&nbsp;<a href="<?php echo $draft['draft_location_link']; ?>"><?php echo $draft['draft_location']; ?></a></span>
          </dd>
          <dd class="cp-list-second">
              <?php echo $draft['save_time']; ?><br />
              <span><a href="<?php echo $draft['draft_load_link']; ?>">Load draft</a></span>
          </dd>
          <dd class="cp-list-third">
              <input type="checkbox" name="marked_draft_id[]" value="<?php echo $draft['draft_id'] ; ?>" />
          </dd>
      </dl>
      <?php } ?>
      <?php if(!empty($drafts)){ ?>
      <dl class="cp-list-bottom">
          <dd><?php if($draft_total>1){ ?>
              &bull; <a href="#" onclick="marklist('draft-list-form', 'marked_draft', true); return false;"><?php echo $text_mark_all; ?></a>
              &bull; <a href="#" onclick="marklist('draft-list-form', 'marked_draft', false); return false;"><?php echo $text_unmark_all; ?></a>
              <?php } ?>
              <input class="input-buttons" type="submit" name="delete_drafts" value="<?php echo $text_delete; ?>" onclick="{if(confirm('<?php echo $text_confirm_delete; ?>')){this.document.draft-list-form.submit();return true;}return false;}" />
          </dd>
      </dl>
      <?php } ?>
      <?php } ?>
  </dd>
</dl>
</form>
<script type="text/javascript"><!--
$(document).ready(
function(){
    $(".draft-list").filter(":even").mouseover(function() {
        $(this).css("background-color", "#FFFFDB");
    }).mouseout(function(){
            $(this).css("background-color", "");
        });

    $(".draft-list").filter(":odd").mouseover(function() {
        $(this).css("background-color", "#FFFFDB");
    }).mouseout(function(){
            $(this).css("background-color", "");
        });
});
//--></script>
<?php break; ?>
<?php } ?>